package cn.v2tila.rsosa.student.service.serviceImpl;

import cn.v2tila.rsosa.student.entity.ZpxxImgsEntity;
import cn.v2tila.rsosa.student.jpa.ZpxxImgsJPA;
import cn.v2tila.rsosa.student.service.ZpxxImgsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author v2tila on 14:42 2019/3/15
 */
@Service
public class ZpxxImgsServiceImpl implements ZpxxImgsService {
    @Autowired
    private ZpxxImgsJPA zpxxImgsJPA;

    public ZpxxImgsEntity saveAndFlush(ZpxxImgsEntity zpxxImgsEntity) {
        return zpxxImgsJPA.saveAndFlush(zpxxImgsEntity);
    }

    @Override
    public List<ZpxxImgsEntity> findByZpxxId(Integer zpxxId) {
        return zpxxImgsJPA.findByZpxxId(zpxxId);
    }

}
